{% extends "../main.html" %}

{% block bodyy %}
<h3 class="sub-header" content="">新增用户</h3>
<form class="form-horizontal" method="post">
    <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">邮箱</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" id="inputEmail3" placeholder="邮箱" name="email">
        </div>
    </div>

    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">密码</label>
        <div class="col-sm-10">
            <input type="password" class="form-control" id="inputPassword3" placeholder="密码" name="passwd">
        </div>
    </div>
    <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">姓名</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" placeholder="姓名或昵称" name="name">
        </div>
    </div>
    <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">账号状态</label>
        <div class="col-sm-10">
            <select id="sel_menu" class="form-control" name="status">
                <option value="1">启用</option>
                <option value="0">禁用</option>

            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">联系电话</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" id="inputEmail3" placeholder="电话号码" name="phone">
        </div>
    </div>
    <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">用户角色</label>
        <div class="col-sm-10">
            <!--input type="text" class="form-control" id="inputEmail3" placeholder="权限等级" name="qx"-->
            <select id="sel_menu" class="form-control" name="qx">
                <option value="0">请选择</option>
                {% for i in data %}
                <option value="{{i[0]}}">{{i[1]}}</option>
                {% end %}
            </select>

        </div>
    </div>

    <div class="form-group">
        <div class="col-sm-offset-5 col-sm-10">
            <button type="submit" class="btn btn-primary">提交</button>
            <button type="reset" class="btn btn-danger">重置</button>
        </div>
    </div>
</form>

{% end %}
